﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCSinhVien.ascx.cs" Inherits="Web.giamthi.UCSinhVien" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    Width="100%" onselectedindexchanging="GridView1_SelectedIndexChanging" 
    BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" 
    CellPadding="4" GridLines="Horizontal" 
    onpageindexchanging="GridView1_PageIndexChanging">
    <Columns>
        <asp:BoundField DataField="MaSV" HeaderText="Mã SV" />
        <asp:BoundField DataField="hoten" HeaderText="Họ Tên" />
         <asp:TemplateField HeaderText="Lớp">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("LopHoc.TenLop") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="gioitinh" HeaderText="Giới Tính" />
        <asp:BoundField DataField="ngaysinh" dataformatstring="{0:MM/dd/yyyy}" HeaderText="Ngày Sinh" />
        <asp:BoundField DataField="dienthoai" HeaderText="Điện thoại" />
        <asp:BoundField DataField="DiaChi" HeaderText="Địa chỉ" />
        <asp:BoundField DataField="Email" HeaderText="Email" />
        <asp:BoundField DataField="TrangThai" HeaderText="Trạng thái" />
        <asp:CommandField ShowSelectButton="True" />
    </Columns>
    <FooterStyle BackColor="White" ForeColor="#333333" />
    <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle HorizontalAlign="Center" BackColor="White" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F7F7F7" />
    <SortedAscendingHeaderStyle BackColor="#487575" />
    <SortedDescendingCellStyle BackColor="#E5E5E5" />
    <SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>

